#include <TCServerCore.h>
#include <RunGuard.h>
#include <QDebug>

int main(int argc, char *argv[])
{
	RunGuard guard("TCServer");
	if (!guard.tryToRun())
	{
		qDebug() << "There is another server running, exiting this instance ..." << endl;
		return 0;
	}
	TCServerCore app(argc, argv);
	
	return app.run();
}